package com.example.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author yexi
 */
@Component("global")
public class GlobalProperties {
    @Value("自定义服务名")
    public String serviceName;

    @Value("#{global.serviceName}")
    public String serviceName2;
}
